package com.fast.develop.core.event;

import com.fast.develop.core.context.ModuleContext;

/**
 * @author 莫寅
 * @createTime 2022-06-09 13:13
 * @desc：
 */
public class ContextStartedEvent implements ModuleEvent<ModuleContext, Object> {

    private ModuleContext moduleContext;

    private Object payload;

    public ContextStartedEvent(ModuleContext moduleContext) {
        this.moduleContext = moduleContext;
    }

    @Override
    public ModuleContext getSource() {
        return moduleContext;
    }

    @Override
    public Object getPayload() {
        return payload;
    }
}
